﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Data;
using MyPublisher.Administration.Commands;
using System.Windows.ApplicationFramework;
using System.Collections.ObjectModel;
using MyPublisher.Administration.Model;
using MyPublisher.Framework;
using MyPublisher.Administration.Views;

namespace MyPublisher.Administration.ViewModels
{
    public class IdentiesViewModel : DocumentViewModel<Document>
    {
        public ICommand newCommand;

        public IdentiesViewModel(IView view, string name)
            : base(view, name)
        {
            this.InsertItems(App.EntityFactory.Identities);
            this.SelectFirst();
        }

        public ICommand NewCommand
        {
            get
            {
                if (newCommand == null)
                {
                    newCommand = new DelegateCommand(New);
                }
                return newCommand;
            }
        }

        private void New()
        {
        }
    }
}
